package com.markyao.utils;


import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;


import java.text.SimpleDateFormat;
import java.util.Date;

public  class DateFormat {
    public static final String STANDARD_FORMAT = "yyyy-MM-dd HH:mm:ss";
    //Date-->string
    public static String toStringDate(Date date){
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat(STANDARD_FORMAT);
        String format = simpleDateFormat.format(date);

        return format;
    }


}
